/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package canteen.sys.model.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 *
 * @author TNT
 */
@Entity
public class ItemTypeMaster implements Serializable {

    @Id
    @GeneratedValue
    private int itemTypeId;
    @NotNull
    @Size(min = 5, max = 50, message = "Name Item Type must >=5 or <=50 character")
    @Column(length=50, unique=true)
    private String itemTypeName;
    @NotNull
    private boolean status;

    public ItemTypeMaster(int itemTypeId, String itemTypeName, boolean status) {
        this.itemTypeId = itemTypeId;
        this.itemTypeName = itemTypeName;
        this.status = status;
    }

    public ItemTypeMaster() {
    }

    public int getItemTypeId() {
        return itemTypeId;
    }

    public void setItemTypeId(int itemTypeId) {
        this.itemTypeId = itemTypeId;
    }

    public String getItemTypeName() {
        return itemTypeName;
    }

    public void setItemTypeName(String itemTypeName) {
        this.itemTypeName = itemTypeName;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }
}
